﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Core.Common;
using ECommerce.Model.Order;

namespace ECommerce.DAL.Order
{
    public class ECOrderPayDAL : BaseDAL
    {
        public ECOrderPayInfo GetInfoByOrderID(long orderID)
        {
            string sql = "select * from ECOrderPay where OrderID=@p0";
            List<ECOrderPayInfo> list = dbOper.Query<ECOrderPayInfo>(sql, orderID);
            if (list.Count > 0)
            {
                return list.First();
            }
            else
            {
                return null;
            }
        }
    }

}
